package com.carbon.domain.system.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * <p>
 * 系统字典分组VO
 * </p>
 *
 * @author System
 * @since 2024-01-01
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "SysDictGroupVo对象", description = "系统字典分组")
public class SysDictGroupVo {

    @ApiModelProperty(value = "字典ID")
    private Long id;

    @ApiModelProperty(value = "字典编码")
    private String dictCode;

    @ApiModelProperty(value = "字典名称")
    private String dictName;

    @ApiModelProperty(value = "字典项列表")
    private List<SysDictItemVo> items;

    @Data
    @Accessors(chain = true)
    @ApiModel(value = "SysDictItemVo对象", description = "系统字典项")
    public static class SysDictItemVo {
        @ApiModelProperty(value = "字典项值")
        private String value;

        @ApiModelProperty(value = "字典项名称")
        private String name;

        @ApiModelProperty(value = "字典编码")
        private String dictCode;
    }
}
